﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ReadClick : MonoBehaviour {
    //public GameObject CanV;
	// Use this for initialization
	void Start () {
	}
	
	// Update is called once per frame
	void Update () {
		
	}
    public void NoCompile() {
        InputField[] inf = GetComponentsInChildren<InputField>();
        foreach (var item in inf)
        {
            item.interactable = false;
        }
    }
    public void OnCompile()
    {
        InputField[] inf = GetComponentsInChildren<InputField>();
        foreach (var item in inf)
        {
            
            item.interactable = true;
        }
    }
}
